package cn.tedu.boot0801.mapper;

import cn.tedu.boot0801.entity.Product;

import java.util.List;

public interface ProductMapper {
    void insert(Product product);
    void delete(int id);
    List<Product> select();
    Product selectById(int id);
    void update(Product product);
    int count();
    //返回值  返回的是生效的行数
    int deleteByIds1(List<Integer> ids);
    int deleteByIds2(Integer[] ids);
    int deleteByIds3(Integer... ids);
    int insertProducts(List<Product> products);
    int dynamicInsert(Product product);
    int dynamicUpdate(Product product);
}
